package eleme.openapi.sdk.api.entity.product;

import java.util.List;

public class MaterialTree {

    /**
     * 原料id
     */
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 原料名称
     */
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 原料父id
     */
    private Long parentId;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * 层级
     */
    private Integer lev;

    public Integer getLev() {
        return lev;
    }

    public void setLev(Integer lev) {
        this.lev = lev;
    }

    /**
     * 子原料
     */
    private List<MaterialTree> children;

    public List<MaterialTree> getChildren() {
        return children;
    }

    public void setChildren(List<MaterialTree> children) {
        this.children = children;
    }

    /**
     * 是否叶子节点
     */
    private Integer leaf;

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }

}
